You have entered a function that cannot be used in this expression. The functions DoEvents, LBound, UBound, Spc, and Tab are not available in expressions.